package yh;

/**
 * @Auther:云尚学Java
 *
 *  案例2：双重for循环：打印直角三角形
 */
public class ForDemo4 {
    public static void main(String[] args) {
        for (int i = 0; i <=3 ; i++) {
            //System.out.println(i+"行");
            for(int j=1;j<=4-i;j++){
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
